import java.util.Scanner;

public class Test002 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int n=sc.nextInt();
		int b=0;
		for(int i=n;i>=1;i--) {
			b++;
			for (int j = 0; j < b; j++) {
				System.out.print("  ");
			}
			for(int j=1;j<=(2*i-1);j++) {
				System.out.print(" $");
			}System.out.println();
		}sc.close();

	}

}
